home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tk / getcapstyl.z / getcapstyl
Text File  |  1998-10-30  |  4KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333TTTTkkkk))))                                        TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_GetCapStyle, Tk_NameOfCapStyle - translate between strings and cap
  10.      styles
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  14.  
  15.      int
  16.      TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee((((_i_n_t_e_r_p, _s_t_r_i_n_g, _c_a_p_P_t_r))))
  17.  
  18.      char *
  19.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffCCCCaaaappppSSSSttttyyyylllleeee((((_c_a_p))))
  20.  
  21. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  22.      Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter to use for error reporting.
  23.  
  24.      char         *_s_t_r_i_n_g   (in)      String containing name of cap style: one
  25.                                       of ```butt'', ``projecting'', or
  26.                                       ``round''.
  27.  
  28.      int          *_c_a_p_P_t_r   (out)     Pointer to location in which to store X
  29.                                       cap style corresponding to _s_t_r_i_n_g.
  30.  
  31.      int          _c_a_p       (in)      Cap style: one of CCCCaaaappppBBBBuuuutttttttt,
  32.                                       CCCCaaaappppPPPPrrrroooojjjjeeeeccccttttiiiinnnngggg, or CCCCaaaappppRRRRoooouuuunnnndddd.
  33.  
  34.  
  35. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  36.      TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee places in *_c_a_p_P_t_r the X cap style corresponding to _s_t_r_i_n_g.
  37.      This will be one of the values CCCCaaaappppBBBBuuuutttttttt, CCCCaaaappppPPPPrrrroooojjjjeeeeccccttttiiiinnnngggg, or CCCCaaaappppRRRRoooouuuunnnndddd.  Cap
  38.      styles are typically used in X graphics contexts to indicate how the
  39.      end-points of lines should be capped.  See the X documentation for
  40.      information on what each style implies.
  41.  
  42.      Under normal circumstances the return value is TTTTCCCCLLLL____OOOOKKKK and _i_n_t_e_r_p is
  43.      unused.  If _s_t_r_i_n_g doesn't contain a valid cap style or an abbreviation
  44.      of one of these names, then an error message is stored in _i_n_t_e_r_p->_r_e_s_u_l_t,
  45.      TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_c_a_p_P_t_r is unmodified.
  46.  
  47.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffCCCCaaaappppSSSSttttyyyylllleeee is the logical inverse of TTTTkkkk____GGGGeeeettttCCCCaaaappppSSSSttttyyyylllleeee.  Given a cap
  48.      style such as CCCCaaaappppBBBBuuuutttttttt it returns a statically-allocated string
  49.      corresponding to _c_a_p.  If _c_a_p isn't a legal cap style, then ``unknown cap
  50.      style'' is returned.
  51.  
  52.  
  53. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  54.      butt, cap style, projecting, round
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.